package org.zjz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zjz.dao.ClientDao;
import org.zjz.pojo.GuestInfo;
import org.zjz.pojo.GuestType;
import org.zjz.pojo.Hass;
import org.zjz.pojo.Huanfang;
import org.zjz.pojo.Record;
import org.zjz.pojo.RoomInfo;
import org.zjz.service.ClientService;

@Service("clientService")
public class ClientServiceImpl implements ClientService {

	@Autowired
	private ClientDao clientDao;
	
	public List<GuestType> selectGuestType() {
		return clientDao.selectGuestType();
	}

	public List<GuestInfo> selectGuestInfo(GuestInfo guestInfo) {
		return clientDao.selectGuestInfo(guestInfo);
	}

	public Integer addGuestInfo(GuestInfo guestInfo) {
		return clientDao.addGuestInfo(guestInfo);
	}

	public Integer updateRoomInfo(RoomInfo roomInfo) {
		return clientDao.updateRoomInfo(roomInfo);
	}

	public List<RoomInfo> selectRoomInfo(RoomInfo roomInfo) {
		return clientDao.selectRoomInfo(roomInfo);
	}

	public Integer addRecord(Record record) {
		return clientDao.addRecord(record);
	}

	public Integer updateRecord(Record record) {
		return clientDao.updateRecord(record);
	}

	public List<Huanfang> selectHuanfang() {
		return clientDao.selectHuanfang();
	}

	public Integer addHass(Hass hass) {
		return clientDao.addHass(hass);
	}

}
